import Layout from '@/layout'

const customerRouter =
{
  path: '/customer',
  name: 'customer-group',
  component: Layout,
  meta: { title: '客服管理', icon: 'tree', roles: ['m5600'] },
  children: [
    {
      path: 'customerSupplier/:type',
      component: (resolve) => require(['@/views/customer-group/supplier-manage/index'], resolve),
      name: 'CustomerSupplierManage',
      remoteParam: { serviceName: 'wms', path: '/api/ser/supplier-info/' },
      remoteUrl: '',
      meta: { title: '供应商信息', roles: ['m5610'] }
    },
    {
      path: '/customerSupplierManage/edit/:no',
      name: 'CustomerSupplierManageEdit',
      component: (resolve) => require(['@/views/customer-group/supplier-manage/edit'], resolve),
      meta: { title: '供应商信息管理-' },
      remoteUrl: '',
      hidden: true
    },
    {
      path: 'customerService',
      component: (resolve) => require(['@/views/customer-group/customer-manage/index'], resolve),
      name: 'CustomerServiceManage',
      remoteParam: { serviceName: 'wms', path: '/api/service/index/findInfoList?key=0' },
      remoteUrl: '',
      meta: { title: '客服信息', roles: ['m5620'] }
    }
  ]
}
export default customerRouter
